<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>CentOS 安装 Docker、Docker Compose | 猿谋人</title>
    <meta name="description" content="个人技术知识库，记录 & 分享个人碎片化、结构化、体系化的技术知识内容。">
    <link rel="preload stylesheet" href="/assets/style.fbdbabc2.css" as="style">
    <script type="module" src="/assets/app.1f95c682.js"></script>
    <link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
  <link rel="modulepreload" href="/assets/chunks/framework.41302fb6.js">
  <link rel="modulepreload" href="/assets/chunks/theme.9497cdcb.js">
  <link rel="modulepreload" href="/assets/categories_fragments_2022_CentOS安装Docker.md.7708bad4.lean.js">
  <link rel="icon" href="/favicon.ico">
  <meta name="author" content="buqiyuan">
  <meta name="keywords" content="猿谋人的知识库, 知识库, 博客, buqiyuan">
  <meta name="HandheldFriendly" content="True">
  <meta name="MobileOptimized" content="320">
  <meta name="theme-color" content="#3c8772">
  <meta property="og:type" content="website">
  <meta property="og:locale" content="zh_CN">
  <meta property="og:title" content="猿谋人">
  <meta property="og:description" content="个人技术知识库，记录 &amp; 分享个人碎片化、结构化、体系化的技术知识内容。">
  <meta property="og:site" content="https://blog.buqiyuan.top">
  <meta property="og:site_name" content="猿谋人">
  <meta property="og:image" content="https://blog.buqiyuan.top/logo.jpg">
  <script>var _hmt=_hmt||[];(function(){var e=document.createElement("script");e.src="https://hm.baidu.com/hm.js?f04aacf6aa2e2a9c9174710ff925e139";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})();</script>
  <script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
  </head>
  <body>
    <div id="app"><div class="Layout" data-v-bacc1dd3><!--[--><!--]--><!--[--><span tabindex="-1" data-v-f2283d62></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-f2283d62> Skip to content </a><!--]--><!----><header class="VPNav" data-v-bacc1dd3 data-v-95f39c38><div class="VPNavBar has-sidebar" data-v-95f39c38 data-v-37e80b00><div class="container" data-v-37e80b00><div class="title" data-v-37e80b00><div class="VPNavBarTitle has-sidebar" data-v-37e80b00 data-v-6d5e4206><a class="title" href="/" data-v-6d5e4206><!--[--><!--]--><!--[--><img class="VPImage logo" src="/logo.png" alt data-v-3cc057b6><!--]--><!--[-->猿谋人<!--]--><!--[--><!--]--></a></div></div><div class="content" data-v-37e80b00><div class="curtain" data-v-37e80b00></div><div class="content-body" data-v-37e80b00><!--[--><!--]--><div class="VPNavBarSearch search" style="--vp-meta-key:&#39;Meta&#39;;" data-v-37e80b00><!--[--><!----><div id="local-search"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><svg class="DocSearch-Search-Icon" width="20" height="20" viewBox="0 0 20 20" aria-label="search icon"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">搜索文档</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-37e80b00 data-v-73977f53><span id="main-nav-aria-label" class="visually-hidden" data-v-73977f53>Main Navigation</span><!--[--><!--[--><div class="VPFlyout VPNavBarMenuGroup active" data-v-73977f53 data-v-f5e67b47><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-f5e67b47><span class="text" data-v-f5e67b47><!----> 我的分类 <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="text-icon" data-v-f5e67b47><path d="M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"></path></svg></span></button><div class="menu" data-v-f5e67b47><div class="VPMenu" data-v-f5e67b47 data-v-b9038a99><div class="items" data-v-b9038a99><!--[--><!--[--><div class="VPMenuLink" data-v-b9038a99 data-v-110f5163><a class="VPLink link" href="/categories/issues/index.html" data-v-110f5163><!--[-->Bug万象集<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b9038a99 data-v-110f5163><a class="VPLink link active" href="/categories/fragments/index.html" data-v-110f5163><!--[-->&quot;杂碎&quot;逆袭史<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b9038a99 data-v-110f5163><a class="VPLink link" href="/categories/tools/index.html" data-v-110f5163><!--[-->工具四海谈<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/tags/" tabindex="0" data-v-73977f53 data-v-3d76bda5><!--[-->我的标签<!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/archives/" tabindex="0" data-v-73977f53 data-v-3d76bda5><!--[-->我的归档<!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/videos/" tabindex="0" data-v-73977f53 data-v-3d76bda5><!--[-->我的观影院<!--]--></a><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-73977f53 data-v-f5e67b47><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-f5e67b47><span class="text" data-v-f5e67b47><!----> 关于 <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="text-icon" data-v-f5e67b47><path d="M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"></path></svg></span></button><div class="menu" data-v-f5e67b47><div class="VPMenu" data-v-f5e67b47 data-v-b9038a99><div class="items" data-v-b9038a99><!--[--><!--[--><div class="VPMenuLink" data-v-b9038a99 data-v-110f5163><a class="VPLink link" href="/about/blog/" data-v-110f5163><!--[-->关于知识库<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b9038a99 data-v-110f5163><a class="VPLink link" href="/about/me/#page1" data-v-110f5163><!--[-->关于我<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-37e80b00 data-v-4635adb6><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="toggle dark mode" aria-checked="false" data-v-4635adb6 data-v-66d140a6 data-v-a6e59bae><span class="check" data-v-a6e59bae><span class="icon" data-v-a6e59bae><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-66d140a6><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-66d140a6><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-37e80b00 data-v-5f76479f data-v-b340ae52><!--[--><a class="VPSocialLink" href="https://github.com/buqiyuan/buqiyuan.github.io" aria-label="github" target="_blank" rel="noopener" data-v-b340ae52 data-v-ce51fdd1><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a class="VPSocialLink" href="https://gitee.com/buqiyuan/buqiyuan" aria-label target="_blank" rel="noopener" data-v-b340ae52 data-v-ce51fdd1><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>码云</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-37e80b00 data-v-b568ad46 data-v-f5e67b47><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-f5e67b47><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="icon" data-v-f5e67b47><circle cx="12" cy="12" r="2"></circle><circle cx="19" cy="12" r="2"></circle><circle cx="5" cy="12" r="2"></circle></svg></button><div class="menu" data-v-f5e67b47><div class="VPMenu" data-v-f5e67b47 data-v-b9038a99><!----><!--[--><!--[--><!----><div class="group" data-v-b568ad46><div class="item appearance" data-v-b568ad46><p class="label" data-v-b568ad46>切换日光/暗黑模式</p><div class="appearance-action" data-v-b568ad46><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="toggle dark mode" aria-checked="false" data-v-b568ad46 data-v-66d140a6 data-v-a6e59bae><span class="check" data-v-a6e59bae><span class="icon" data-v-a6e59bae><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-66d140a6><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-66d140a6><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div></div></div><div class="group" data-v-b568ad46><div class="item social-links" data-v-b568ad46><div class="VPSocialLinks social-links-list" data-v-b568ad46 data-v-b340ae52><!--[--><a class="VPSocialLink" href="https://github.com/buqiyuan/buqiyuan.github.io" aria-label="github" target="_blank" rel="noopener" data-v-b340ae52 data-v-ce51fdd1><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a class="VPSocialLink" href="https://gitee.com/buqiyuan/buqiyuan" aria-label target="_blank" rel="noopener" data-v-b340ae52 data-v-ce51fdd1><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>码云</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-37e80b00 data-v-169da333><span class="container" data-v-169da333><span class="top" data-v-169da333></span><span class="middle" data-v-169da333></span><span class="bottom" data-v-169da333></span></span></button></div></div></div></div><!----></header><div class="VPLocalNav" data-v-bacc1dd3 data-v-a57b3302><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-a57b3302><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="menu-icon" data-v-a57b3302><path d="M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"></path><path d="M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"></path><path d="M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"></path><path d="M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"></path></svg><span class="menu-text" data-v-a57b3302>文章</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-a57b3302 data-v-910caf03><button data-v-910caf03>返回顶部</button><!----></div></div><aside class="VPSidebar" data-v-bacc1dd3 data-v-b32353ee><div class="curtain" data-v-b32353ee></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-b32353ee><span class="visually-hidden" id="sidebar-aria-label" data-v-b32353ee> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="group" data-v-b32353ee><section class="VPSidebarItem level-0 collapsible" data-v-b32353ee data-v-84fb9210><div class="item" role="button" tabindex="0" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><h2 class="text" data-v-84fb9210>📑 我的置顶 (2篇)</h2><div class="caret" role="button" aria-label="toggle section" tabindex="0" data-v-84fb9210><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="caret-icon" data-v-84fb9210><path d="M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"></path></svg></div></div><div class="items" data-v-84fb9210><!--[--><div class="VPSidebarItem level-1 is-link" data-v-84fb9210 data-v-84fb9210><div class="item" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><a class="VPLink link link" href="/categories/fragments/2021/%E4%B8%AA%E4%BA%BA%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE.html" data-v-84fb9210><!--[--><p class="text" data-v-84fb9210>[1] 个人常用快捷键</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-84fb9210 data-v-84fb9210><div class="item" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><a class="VPLink link link" href="/categories/fragments/2021/%E4%B8%AA%E4%BA%BA%E5%B8%B8%E7%94%A8Git%E5%91%BD%E4%BB%A4.html" data-v-84fb9210><!--[--><p class="text" data-v-84fb9210>[2] 个人常用 Git 命令</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="group" data-v-b32353ee><section class="VPSidebarItem level-0 collapsible has-active" data-v-b32353ee data-v-84fb9210><div class="item" role="button" tabindex="0" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><h2 class="text" data-v-84fb9210>2022年 (1篇)</h2><div class="caret" role="button" aria-label="toggle section" tabindex="0" data-v-84fb9210><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="caret-icon" data-v-84fb9210><path d="M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"></path></svg></div></div><div class="items" data-v-84fb9210><!--[--><div class="VPSidebarItem level-1 is-link is-active has-active" data-v-84fb9210 data-v-84fb9210><div class="item" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><a class="VPLink link link" href="/categories/fragments/2022/CentOS%E5%AE%89%E8%A3%85Docker.html" data-v-84fb9210><!--[--><p class="text" data-v-84fb9210>[1] CentOS 安装 Docker、Docker Compose</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="group" data-v-b32353ee><section class="VPSidebarItem level-0 collapsible collapsed" data-v-b32353ee data-v-84fb9210><div class="item" role="button" tabindex="0" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><h2 class="text" data-v-84fb9210>2021年 (2篇)</h2><div class="caret" role="button" aria-label="toggle section" tabindex="0" data-v-84fb9210><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="caret-icon" data-v-84fb9210><path d="M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"></path></svg></div></div><div class="items" data-v-84fb9210><!--[--><div class="VPSidebarItem level-1 is-link" data-v-84fb9210 data-v-84fb9210><div class="item" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><a class="VPLink link link" href="/categories/fragments/2021/%E4%B8%AA%E4%BA%BA%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE.html" data-v-84fb9210><!--[--><p class="text" data-v-84fb9210>[1] 个人常用快捷键</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-84fb9210 data-v-84fb9210><div class="item" data-v-84fb9210><div class="indicator" data-v-84fb9210></div><a class="VPLink link link" href="/categories/fragments/2021/%E4%B8%AA%E4%BA%BA%E5%B8%B8%E7%94%A8Git%E5%91%BD%E4%BB%A4.html" data-v-84fb9210><!--[--><p class="text" data-v-84fb9210>[2] 个人常用 Git 命令</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-bacc1dd3 data-v-c03735c8><div class="VPDoc has-sidebar has-aside" data-v-c03735c8 data-v-72f0cf66><!--[--><!--]--><div class="container" data-v-72f0cf66><div class="aside" data-v-72f0cf66><div class="aside-curtain" data-v-72f0cf66></div><div class="aside-container" data-v-72f0cf66><div class="aside-content" data-v-72f0cf66><div class="VPDocAside" data-v-72f0cf66 data-v-dbafcf85><!--[--><!--]--><!--[--><!--]--><div class="VPDocAsideOutline" data-v-dbafcf85 data-v-f3ce93eb><div class="content" data-v-f3ce93eb><div class="outline-marker" data-v-f3ce93eb></div><div class="outline-title" data-v-f3ce93eb>目录</div><nav aria-labelledby="doc-outline-aria-label" data-v-f3ce93eb><span class="visually-hidden" id="doc-outline-aria-label" data-v-f3ce93eb> Table of Contents for current page </span><ul class="root" data-v-f3ce93eb data-v-3e931e76><!--[--><!--]--></ul></nav></div></div><!--[--><!--]--><div class="spacer" data-v-dbafcf85></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-72f0cf66><div class="content-container" data-v-72f0cf66><!--[--><!--]--><!----><main class="main" data-v-72f0cf66><div style="position:relative;" class="vp-doc _categories_fragments_2022_CentOS%E5%AE%89%E8%A3%85Docker" data-v-72f0cf66><div><h1 id="centos-安装-docker、docker-compose" tabindex="-1">CentOS 安装 Docker、Docker Compose <a class="header-anchor" href="#centos-安装-docker、docker-compose" aria-label="Permalink to &quot;CentOS 安装 Docker、Docker Compose&quot;">​</a></h1><div class="tip custom-block"><p class="custom-block-title">笔者说</p><p>笔者下面的步骤及配置是基于发帖时间当下的实践，大多数程序大多数情况下在相差不大的版本时可以直接参考。</p></div><h2 id="docker-安装" tabindex="-1">Docker 安装 <a class="header-anchor" href="#docker-安装" aria-label="Permalink to &quot;Docker 安装&quot;">​</a></h2><h3 id="方式一" tabindex="-1">方式一 <a class="header-anchor" href="#方式一" aria-label="Permalink to &quot;方式一&quot;">​</a></h3><ol><li><p>软件更新</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">yum</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-y</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">update</span></span></code></pre></div></li><li><p>安装 yum-utils</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">yum</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-y</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">install</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">yum-utils</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">device-mapper-persistent-data</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">lvm2</span></span></code></pre></div></li><li><p>设置 yum 软件源</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">yum-config-manager</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">--add-repo</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">https://download.docker.com/linux/centos/docker-ce.repo</span></span></code></pre></div></li><li><p>安装 docker-ce（免费社区版）</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">yum</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-y</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">install</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker-ce</span></span></code></pre></div></li><li><p>启动 docker</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">start</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span></code></pre></div></li><li><p>设置 docker 开机自启</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">enable</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span></code></pre></div></li><li><p>检验是否安装成功</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">docker</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-v</span></span></code></pre></div></li></ol><h3 id="方式二-推荐" tabindex="-1">方式二（推荐） <a class="header-anchor" href="#方式二-推荐" aria-label="Permalink to &quot;方式二（推荐）&quot;">​</a></h3><p>一条命令安装 docker。</p><ol><li>下载并安装 docker</li><li>启动并设置 docker 开机自启</li></ol><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-fsSL</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">https://get.docker.com</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">|</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">bash</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-s</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">--mirror</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">Aliyun</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&amp;&amp;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">start</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&amp;&amp;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">enable</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span></code></pre></div><h2 id="docker-配置" tabindex="-1">Docker 配置 <a class="header-anchor" href="#docker-配置" aria-label="Permalink to &quot;Docker 配置&quot;">​</a></h2><p>在 Windows 系统中安装软件时，我们都清楚要尽量不安装在 C 盘，数据存储也尽量迁移到其他空间更大的盘。不然随着程序的使用，数据越来越多，再加上大多数情况下 C 盘空间并不大，最终导致 C 盘很快会被占满。</p><p>同理，不更改 docker 的数据存储目录，那它的镜像、容器等存储占用随着使用时间的增长而增长，那你的服务器系统盘很快就会被占满了。所以建议你将 docker 的数据存储目录改到你服务器的数据盘挂载目录。</p><p>更改 docker 数据存储目录这一点是笔者推荐的，而设置 docker 镜像加速这一点其实根本无需笔者多言，你先不配置，用用 docker 再说，如果你 <code>docker pull</code> 速度很快，那完全不需要配置。这三个镜像加速源是笔者验证过的，当你感受到拉镜像的 “绝望” 时，不妨再来配置试一试。</p><div class="tip custom-block"><p class="custom-block-title">笔者说</p><p>关于镜像加速地址，你还可以从阿里云找到你专属的镜像加速地址。</p><p>按下面的路径就可以找到：</p><p>产品与服务 -&gt; 容器与中间件 -&gt; 容器服务 -&gt; 容器镜像服务 -&gt; 镜像加速器</p></div><p><img src="/images/2022/202210312020985.png" alt="202210312020985"></p><p>闲话不多说，配置只需要 3~5 步即可搞定。</p><ol><li><p>编辑 daemon.json 配置文件</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#676E95;font-style:italic;"># 如果 /etc 下没有 docker 目录，可以先创建一下</span></span>
<span class="line"><span style="color:#676E95;font-style:italic;"># mkdir -p /etc/docker</span></span>
<span class="line"></span>
<span class="line"><span style="color:#FFCB6B;">vim</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">/etc/docker/daemon.json</span></span></code></pre></div></li><li><p>将下方配置内容写入 daemon.json 配置文件</p><div class="language-json"><button title="Copy Code" class="copy"></button><span class="lang">json</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">{</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">&quot;</span><span style="color:#C792EA;">data-root</span><span style="color:#89DDFF;">&quot;</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&quot;</span><span style="color:#C3E88D;">/opt/disk/docker</span><span style="color:#89DDFF;">&quot;</span><span style="color:#89DDFF;">,</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">&quot;</span><span style="color:#C792EA;">registry-mirrors</span><span style="color:#89DDFF;">&quot;</span><span style="color:#89DDFF;">:</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">[</span></span>
<span class="line"><span style="color:#A6ACCD;">    </span><span style="color:#89DDFF;">&quot;</span><span style="color:#C3E88D;">https://hub-mirror.c.163.com</span><span style="color:#89DDFF;">&quot;</span><span style="color:#89DDFF;">,</span></span>
<span class="line"><span style="color:#A6ACCD;">    </span><span style="color:#89DDFF;">&quot;</span><span style="color:#C3E88D;">https://mirror.baidubce.com</span><span style="color:#89DDFF;">&quot;</span><span style="color:#89DDFF;">,</span></span>
<span class="line"><span style="color:#A6ACCD;">    </span><span style="color:#89DDFF;">&quot;</span><span style="color:#C3E88D;">https://ustc-edu-cn.mirror.aliyuncs.com</span><span style="color:#89DDFF;">&quot;</span></span>
<span class="line"><span style="color:#A6ACCD;">  </span><span style="color:#89DDFF;">]</span></span>
<span class="line"><span style="color:#89DDFF;">}</span></span></code></pre></div></li><li><p>重新加载服务配置文件并重启 docker 服务</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#676E95;font-style:italic;"># 重新加载服务配置文件</span></span>
<span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">daemon-reload</span></span>
<span class="line"><span style="color:#676E95;font-style:italic;"># 重启 docker</span></span>
<span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">restart</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span></code></pre></div></li></ol><h2 id="docker-compose-安装" tabindex="-1">Docker Compose 安装 <a class="header-anchor" href="#docker-compose-安装" aria-label="Permalink to &quot;Docker Compose 安装&quot;">​</a></h2><ol><li><p>下载 docker-compose 脚本，并改名为 docker-compose</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-L</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-</span><span style="color:#89DDFF;">$(</span><span style="color:#FFCB6B;">uname</span><span style="color:#C3E88D;"> -s</span><span style="color:#89DDFF;">)</span><span style="color:#C3E88D;">-</span><span style="color:#89DDFF;">$(</span><span style="color:#FFCB6B;">uname</span><span style="color:#C3E88D;"> -m</span><span style="color:#89DDFF;">)</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-o</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">/usr/local/bin/docker-compose</span></span></code></pre></div></li><li><p>给脚本授予可执行权限</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">chmod</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">+x</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">/usr/local/bin/docker-compose</span></span></code></pre></div></li><li><p>检验是否安装成功</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">docker-compose</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-v</span></span></code></pre></div></li></ol><h2 id="参考资料" tabindex="-1">参考资料 <a class="header-anchor" href="#参考资料" aria-label="Permalink to &quot;参考资料&quot;">​</a></h2><ol><li>Custom Docker daemon options#Runtime directory and storage driver：<a href="https://docs.docker.com/config/daemon/systemd/#runtime-directory-and-storage-driver" target="_blank" rel="noreferrer">https://docs.docker.com/config/daemon/systemd/#runtime-directory-and-storage-driver</a></li></ol></div></div></main><footer class="VPDocFooter" data-v-72f0cf66 data-v-e4aee8b0><!--[--><!--]--><div class="edit-info" data-v-e4aee8b0><div class="edit-link" data-v-e4aee8b0><a class="VPLink link edit-link-button" href="https://github.com/buqiyuan/buqiyuan.github.io/edit/main/src/categories/fragments/2022/CentOS安装Docker.md" target="_blank" rel="noreferrer" data-v-e4aee8b0><!--[--><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="edit-link-icon" aria-label="edit icon" data-v-e4aee8b0><path d="M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"></path><path d="M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"></path></svg> 不妥之处，敬请雅正<!--]--></a></div><!----></div><div class="prev-next" data-v-e4aee8b0><div class="pager" data-v-e4aee8b0><a class="pager-link prev" href="/categories/fragments/2021/%E4%B8%AA%E4%BA%BA%E5%B8%B8%E7%94%A8Git%E5%91%BD%E4%BB%A4.html" data-v-e4aee8b0><span class="desc" data-v-e4aee8b0>上一篇</span><span class="title" data-v-e4aee8b0>[2] 个人常用 Git 命令</span></a></div><div class="has-prev pager" data-v-e4aee8b0><a class="pager-link next" href="/categories/fragments/2021/%E4%B8%AA%E4%BA%BA%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE.html" data-v-e4aee8b0><span class="desc" data-v-e4aee8b0>下一篇</span><span class="title" data-v-e4aee8b0>[1] 个人常用快捷键</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-bacc1dd3 data-v-11800644><div class="container" data-v-11800644><p class="message" data-v-11800644>Released under the MIT License.</p><p class="copyright" data-v-11800644>Copyright © 2023-present buqiyuan</p></div></footer><!--[--><!--]--></div></div>
    <script>__VP_HASH_MAP__ = JSON.parse("{\"categories_fragments_2021_个人常用git命令.md\":\"1e8805ca\",\"categories_fragments_2021_个人常用快捷键.md\":\"8d1225a9\",\"categories_fragments_2022_centos安装docker.md\":\"7708bad4\",\"archives_index.md\":\"18ef748b\",\"categories_fragments_index.md\":\"8e75883a\",\"categories_issues_2022_vite开发环境ui框架库加载提速不同ui库的写法.md\":\"8296c03c\",\"categories_issues_index.md\":\"fb964abe\",\"categories_tools_2021_quartz快速入门.md\":\"811edab3\",\"categories_tools_index.md\":\"94566b9c\",\"index.md\":\"b74bf964\",\"tags_index.md\":\"4fffe6de\",\"about_blog_index.md\":\"0f85a16e\",\"about_me_index.md\":\"c62dcafb\"}")
__VP_SITE_DATA__ = JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"猿谋人\",\"description\":\"个人技术知识库，记录 & 分享个人碎片化、结构化、体系化的技术知识内容。\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"我的分类\",\"items\":[{\"text\":\"Bug万象集\",\"link\":\"/categories/issues/index\",\"activeMatch\":\"/categories/issues/\"},{\"text\":\"\\\"杂碎\\\"逆袭史\",\"link\":\"/categories/fragments/index\",\"activeMatch\":\"/categories/fragments/\"},{\"text\":\"工具四海谈\",\"link\":\"/categories/tools/index\",\"activeMatch\":\"/categories/tools/\"}],\"activeMatch\":\"/categories/\"},{\"text\":\"我的标签\",\"link\":\"/tags/\",\"activeMatch\":\"/tags/\"},{\"text\":\"我的归档\",\"link\":\"/archives/\",\"activeMatch\":\"/archives/\"},{\"text\":\"我的观影院\",\"link\":\"/videos/\",\"activeMatch\":\"/videos/\"},{\"text\":\"关于\",\"items\":[{\"text\":\"关于知识库\",\"link\":\"/about/blog/\",\"activeMatch\":\"/about/blog/\"},{\"text\":\"关于我\",\"link\":\"/about/me/#page1\",\"activeMatch\":\"/about/me/\"}],\"activeMatch\":\"/about/\"}],\"sidebar\":{\"/categories/issues/\":[{\"text\":\"2022年 (1篇)\",\"items\":[{\"text\":\"[1] Vite开发环境UI框架库加载提速不同UI库的写法\",\"link\":\"/categories/issues/2022/Vite开发环境UI框架库加载提速不同UI库的写法\",\"date\":{}}],\"collapsed\":false}],\"/categories/fragments/\":[{\"text\":\"📑 我的置顶 (2篇)\",\"items\":[{\"text\":\"[1] 个人常用快捷键\",\"link\":\"/categories/fragments/2021/个人常用快捷键\",\"date\":{}},{\"text\":\"[2] 个人常用 Git 命令\",\"link\":\"/categories/fragments/2021/个人常用Git命令\",\"date\":{}}],\"collapsed\":false},{\"text\":\"2022年 (1篇)\",\"items\":[{\"text\":\"[1] CentOS 安装 Docker、Docker Compose\",\"link\":\"/categories/fragments/2022/CentOS安装Docker\",\"date\":{}}],\"collapsed\":false},{\"text\":\"2021年 (2篇)\",\"items\":[{\"text\":\"[1] 个人常用快捷键\",\"link\":\"/categories/fragments/2021/个人常用快捷键\",\"date\":{}},{\"text\":\"[2] 个人常用 Git 命令\",\"link\":\"/categories/fragments/2021/个人常用Git命令\",\"date\":{}}],\"collapsed\":true}],\"/categories/tools/\":[{\"text\":\"2021年 (1篇)\",\"items\":[{\"text\":\"[1] Quartz 快速入门\",\"link\":\"/categories/tools/2021/Quartz快速入门\",\"date\":{}}],\"collapsed\":false}]},\"logo\":\"/logo.png\",\"outline\":{\"level\":\"deep\",\"label\":\"目录\"},\"darkModeSwitchLabel\":\"切换日光/暗黑模式\",\"sidebarMenuLabel\":\"文章\",\"returnToTopLabel\":\"返回顶部\",\"lastUpdatedText\":\"最后更新\",\"docFooter\":{\"prev\":\"上一篇\",\"next\":\"下一篇\"},\"editLink\":{\"pattern\":\"https://github.com/buqiyuan/buqiyuan.github.io/edit/main/src/:path\",\"text\":\"不妥之处，敬请雅正\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"root\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\"}}}}}}},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/buqiyuan/buqiyuan.github.io\"},{\"icon\":{\"svg\":\"<svg role=\\\"img\\\" viewBox=\\\"0 0 24 24\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><title>码云</title><path d=\\\"M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z\\\"/></svg>\"},\"link\":\"https://gitee.com/buqiyuan/buqiyuan\"}],\"footer\":{\"message\":\"Released under the MIT License.\",\"copyright\":\"Copyright © 2023-present buqiyuan\"},\"articleMetadataConfig\":{\"author\":\"猿谋人\",\"authorLink\":\"/about/me\",\"showViewCount\":true},\"copyrightConfig\":{\"license\":\"署名-相同方式共享 4.0 国际 (CC BY-SA 4.0)\",\"licenseLink\":\"http://creativecommons.org/licenses/by-sa/4.0/\"},\"commentConfig\":{\"type\":\"gitalk\",\"showComment\":true},\"footerConfig\":{\"showFooter\":true,\"icpRecordCode\":\"津ICP备2022005864号-2\",\"publicSecurityRecordCode\":\"津公网安备12011202000677号\",\"copyright\":\"Copyright © 2019-2023 buqiyuan\"}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":false}")</script>
    
  </body>
</html>